import dayjs from 'dayjs'
import React from 'react'
interface CirecleRateProps {
  AnnualDeliveryRate?: number | string
}
import './index.less'
const CirecleRate: React.FC<CirecleRateProps> = ({ AnnualDeliveryRate }) => {
  const currentYear = dayjs().month() + 1 >= 3 ? dayjs().year() : dayjs().year() - 1
  return (
    <div className="desk_return_time_circle_rate">
      <div className="circlerate-title">{currentYear}年度准交率</div>
      <div className="circlerate-main-wrap">
        <div>{AnnualDeliveryRate}</div>
      </div>
    </div>
  )
}

export default CirecleRate
